import Layout from '@/views/layout/frame/Layout.vue'

export default [
  // 巡检管理
  {
    path: '/sys',
    component: Layout,
    hidden: false,
    alwaysShow: true,
    name: 'sys',
    meta: {
      title: '系统设置',
      icon: 'iconfont icon-shezhi',
      roles: ['CUSTOMER_USER', 'TENANT_ADMIN', 'TENANT_SUPPORT']
    },
    children: [
      {
        path: 'userManage',
        name: 'userManage',
        component: () => import('@/views/userManage/index.vue'),
        meta: {
          title: '用户管理',
          icon: 'iconfont icon-shezhi',
          roles: ['CUSTOMER_USER', 'TENANT_ADMIN', 'TENANT_SUPPORT']
        }
      },
      {
        path: 'roleManage',
        name: 'roleManage',
        component: () => import('@/views/roleManage/index.vue'),
        meta: {
          title: '角色管理',
          icon: 'iconfont icon-shezhi',
          roles: ['CUSTOMER_USER', 'TENANT_ADMIN', 'TENANT_SUPPORT']
        }
      },
      {
        path: 'loginLog',
        name: 'loginLog',
        component: () => import('@/views/dailyLog/loginLog.vue'),
        meta: {
          title: '登录日志',
          icon: 'iconfont icon-shezhi',
          roles: ['CUSTOMER_USER', 'TENANT_ADMIN', 'TENANT_SUPPORT']
        }
      },
      {
        path: 'operationLog',
        name: 'operationLog',
        component: () => import('@/views/dailyLog/operationLog.vue'),
        meta: {
          title: '操作日志',
          icon: 'iconfont icon-shezhi',
          roles: ['CUSTOMER_USER', 'TENANT_ADMIN', 'TENANT_SUPPORT']
        }
      },
      {
        path: 'backup',
        name: 'backup',
        component: () => import('@/views/sysManage/dataBackup.vue'),
        meta: {
          title: '备份恢复',
          icon: 'most',
          roles: ['CUSTOMER_USER', 'TENANT_ADMIN', 'TENANT_SUPPORT']
        }
      },
      {
        path: 'sysSetting',
        name: 'sysSetting',
        component: () => import('@/views/sysManage/sysSetting.vue'),
        meta: {
          title: '系统设置',
          icon: 'iconfont icon-shezhi',
          roles: ['CUSTOMER_USER', 'TENANT_ADMIN', 'TENANT_SUPPORT']
        }
      },
      {
        path: 'paramsSetting',
        name: 'paramsSetting',
        component: () => import('@/views/sysManage/paramsSetting.vue'),
        meta: {
          title: '参数配置',
          icon: 'iconfont icon-shezhi',
          roles: ['CUSTOMER_USER', 'TENANT_ADMIN', 'TENANT_SUPPORT']
        }
      }
    ]
  }
]
